public class Test2 {
    public static void main(String[] args) {
        int[] p1 = new int[5];//直接申请空间，系统默认给每个空间赋值0
        int[] p2 = new int[]{1, 2, 3, 4, 5};
        int[] p3 = {1, 2, 3, 4, 5};

        int[][] a = new int[2][3];
        a[0][0] = 1;
        for (int i = 0; i < a.length; i++) {
            for (int j = 0; j < a[i].length; j++) {
                a[i][j] = 100 * i;
            }
        }

        int[][] b = new int[2][];
        b[0] = new int[3];
        b[1] = new int[]{1, 2, 3, 4, 5, 6};
        b[1] = new int[2];


    }
}
